import service from "@/requset/requset.js";

export function getDict(data) {
    return service({
        url: '/dict/getAllDicts',
        method: 'post',
        data: data
    })
}

export function getPic(url) {
    return service({
        url: url,
        method: 'get',
        responseType: 'blob'
    })
}

export function getUserApi(data) {
    return service({
        url: '/user/getAll',
        method: 'post',
        data: data
    })
}

export function updateUserApi(data) {
    return service({
        url: '/user/updateUser',
        method: 'post',
        data: data
    })
}

export function deleteUserApi(id) {
    return service({
        url: '/user/deleteUser',
        params: {
            id: id
        }
    })
}
